<?php

class cntrladminusers implements viewController {

	private $area;
	private $side;
	private $dependencies = array("JavaScript" => array("users.js", "facebox.js"), "CSS" => array("facebox.css") );
	private $pageName = "PicBoard Users Management";
	
	public function __construct(user &$userObj){
		if( $userObj->getAccessLevel() != 1 ){
			// User has to be a global admin to access this view
			header("Location: home");
			exit;
		}
		
		parse_str( $_GET['act'] );
	
		$this->generateSidebar();
		$this->generateArea();
	
		$this->parseUsers();
	}

	private function parseUsers(){
		
	}

	private function generateSidebar(){
		$this->side = new template('control.userActions');
	}
	
	private function generateArea(){
		$this->area = new template('area.users');
	}

	public function getSide(){
		return $this->side;
	}
	
	public function getArea(){
		return $this->area;
	}
	
	public function getDependencies(){
		return $this->dependencies;
	}

	public function getPageName(){
		return $this->pageName;
	}
	
	public function getTools(){
		return "";
	}

}

?>